﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Dota2WebAPI
{
    [Serializable()]
    [System.Xml.Serialization.XmlRoot("result")]
    public class MatchOverview
    {
        [System.Xml.Serialization.XmlElement("status")]
        public int Status
        {
            get;
            set;
        }

        [System.Xml.Serialization.XmlElement("statusDetail")]
        public string StatusDetail
        {
            get;
            set;
        }

        [System.Xml.Serialization.XmlElement("num_results")]
        public int Results
        {
            get;
            set;
        }

        [System.Xml.Serialization.XmlElement("total_results")]
        public int TotalResults
        {
            get;
            set;
        }

        [System.Xml.Serialization.XmlElement("results_remaining")]
        public int RemainingResults
        {
            get;
            set;
        }

        [XmlArray("matches")]
        [XmlArrayItem("match", typeof(MatchInfo))]
        public MatchInfo[] Matches;
    }
}
